package com.ruoyi.house_sale.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 客户事件对象 CustEvent
 * 
 * @author ruoyi
 * @date 2022-04-09
 */
public class CustEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 事件编号 */
    private Long eventid;

    /** 客户编号（关联客户资料表） */
    @Excel(name = "客户编号", readConverterExp = "关=联客户资料表")
    private Long custid;

    /** 成交几率(0%,10%,20%,30%,40%,50%,60%,70%,80%,90%,100%) */
    @Excel(name = "成交几率(0%,10%,20%,30%,40%,50%,60%,70%,80%,90%,100%)")
    private String salepercent;

    /** 机会阶段(比较，兴趣，酝酿） */
    @Excel(name = "机会阶段(比较，兴趣，酝酿）")
    private String chance;

    /** 事件类型（关联事件类型表） */
    @Excel(name = "事件类型", readConverterExp = "关=联事件类型表")
    private String eventtypeid;

    /** 事件时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "事件时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eventtime;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    public void setEventid(Long eventid) 
    {
        this.eventid = eventid;
    }

    public Long getEventid() 
    {
        return eventid;
    }
    public void setCustid(Long custid) 
    {
        this.custid = custid;
    }

    public Long getCustid() 
    {
        return custid;
    }
    public void setSalepercent(String salepercent) 
    {
        this.salepercent = salepercent;
    }

    public String getSalepercent() 
    {
        return salepercent;
    }
    public void setChance(String chance) 
    {
        this.chance = chance;
    }

    public String getChance() 
    {
        return chance;
    }
    public void setEventtypeid(String eventtypeid) 
    {
        this.eventtypeid = eventtypeid;
    }

    public String getEventtypeid() 
    {
        return eventtypeid;
    }
    public void setEventtime(Date eventtime) 
    {
        this.eventtime = eventtime;
    }

    public Date getEventtime() 
    {
        return eventtime;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("eventid", getEventid())
            .append("custid", getCustid())
            .append("salepercent", getSalepercent())
            .append("chance", getChance())
            .append("eventtypeid", getEventtypeid())
            .append("eventtime", getEventtime())
            .append("description", getDescription())
            .toString();
    }
}
